package com.gnar.dis;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class DinoActivity extends Activity {
    /* Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button play = (Button)findViewById(R.id.play);
        Button highScores = (Button)findViewById(R.id.highScores);
        Button options = (Button)findViewById(R.id.options);
        
        play.setOnClickListener(onPlay);
        highScores.setOnClickListener(onHighScores);
        options.setOnClickListener(onOptions);
        
    }
    
    private View.OnClickListener onPlay = new View.OnClickListener() {
		
		public void onClick(View v) {
			Intent dis = new Intent();
			dis.setClass(DinoActivity.this, LevelActivity.class);
			startActivity(dis);
		}
	};
	
    private View.OnClickListener onHighScores = new View.OnClickListener() {
		
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
	};
	
    private View.OnClickListener onOptions = new View.OnClickListener() {
		
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
	};
}
